/*
 * Created by SharpDevelop.
 * User: rseward
 * Date: 4/19/2008
 * Time: 10:49 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.IO;
using System.Text;

namespace AvvaMobileNHibernateHelperKit.Utils
{
	/// <summary>
	/// Description of FileUtils.
	/// </summary>
	public class FileUtils
	{
		
		public static string GetFileText(FileInfo file)
		{
			StringBuilder buf = new StringBuilder();
			StreamReader stream = file.OpenText();
			String text ;
			
			try {
				do {
					text = stream.ReadLine();
					buf.Append(text);
				} while (text!=null);
			} finally {
				stream.Close();
			}
			return ""+buf;
		}
		
		
	}
}
